OptionButton Control (Lightweight)

               

The windowless OptionButton control is a lightweight version of the Visual Basic intrinsic OptionButton control. An OptionButton control is often used to represent an option that can be turned on or off; the controls is frequently used with a Frame control.

Important   Because the lightweight Frame control is not a true container, you must use the Group property to create logical groupings of OptionButton controls.

Syntax

WLOption

Remarks

The distinguishing characteristic of a lightweight control is its lack of an hWnd property. If your application does not use APIs that require the hWnd, the lightweight version of this control will conserve computer resources and allow you to create applications that load faster.

Lightweight controls do not support Dynamic Data Exchange (DDE). In all respects except one, the windowless OptionButton control retains the same behavior as the standard version. The one exception lies in the control's use of the Group property to create mutually exclusive groups of OptionButton controls. See "Group Property" for more information.

Distribution Note   This control is part of a group of ActiveX controls that are found in the MSWLess.ocx. To use the this control in your application, you must add the MSWLess.ocx file to the project. When distributing your application, install the MSWLess.ocx file in the user's Microsoft Windows System or System32 directory. For more information on how to add an ActiveX control to a Visual Basic project, see "Standard ActiveX Controls."

Note   This control is Unicode-enabled. When used on a Unicode-enabled system such as Microsoft Windows NT, the control passes Unicode data with no conversion. On other systems, however, data is converted from ANSI to Unicode and back. For more information, see "ANSI, DBCS, and Unicode: Definitions" in the Programmer's Guide.